package com.exam.scjp5.objectives.section_1;

public class ExampleInnerClass
{
    private int i = 10;
    private static int j = 15;
    private final static int k = 20;

    class Inner1 // extends StaticInner1
    {
        public void print()
        {
            System.out.println("value of 'i' is " + i);
        }
    }
    
    static class StaticInner1
    {
        public void print()
        {
            System.out.println("value of 'i' is " + j);
        }
    }
    
    void test()
    {
        Inner1 i1 = new ExampleInnerClass.Inner1();
        Inner1 i2 = new Inner1();
        Inner1 i3 = this.new Inner1();
        
        StaticInner1 si1 = new StaticInner1();
        byte b =  120;
        b = (byte)(101 + 120);
        
        System.out.println("b " + b);
    }
    
    public static void main(String args[])
    {
        new ExampleInnerClass().test();
    }
}
